package com.hsteach.dao.domain.equipment;

import com.hsteach.common.annotation.Excel;
import com.hsteach.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 报修/维修附件表  tb_equipment_repair_files
 */

@Data
public class EquipmentRepairFiles extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 报修/维修填报信息id */
    @Excel(name = "报修/维修填报信息id")
    private Long repairId;

    /** 类型 1图片 2文件 */
    @Excel(name = "类型 1图片 2视频 3文件")
    private Integer fileType;

    /** 访问url */
    @Excel(name = "访问url")
    private String url;

    /** 附件名 */
    @Excel(name = "附件名")
    private String fileName;

    @Excel(name = "附件类型")
    private String fileExt;
    @Excel(name = "repairInfo 报修信息 ，resultInfo 维修信息")
    private String belongTo;

    /** 是否有效 1有效 0无效 */
    @Excel(name = "是否有效 1有效 0无效")
    private Integer delStatus;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("repairId", getRepairId())
                .append("fileType", getFileType())
                .append("url", getUrl())
                .append("fileName", getFileName())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delStatus", getDelStatus())
                .toString();
    }

}
